#ifndef DATA_UTILS_H_GGJ
#define DATA_UTILS_H_GGJ

#include <map>
#include <string>

#define sizeOfArray(arr) (sizeof(arr)/sizeof(arr[0]))

namespace DataUtils
{

	template <class T> static std::map<std::string, T> GetInvertedIndex(const std::string* index, int count)
	{
		std::map<std::string, T> invertedMap;

		for (int i = 0; i < count; ++i)
		{
			invertedMap[index[i]] = (T)i;
		}

		return invertedMap;
	}
	
}

#endif // DATA_UTILS_H_GGJ